<?php
	
	class Autoloader
	{
		
		/**
		 * Autoloade Class in SDK.
		 * PS: only load SDK class
		 * @param string $class class name
		 * @return void
		 */
		public static function autoload($class)
		{
			$name = $class;
			if (false !== strpos($name, '\\')) {
				$name = strstr($class, '\\', true);
			}
//          $filename = LAZOP_AUTOLOADER_PATH."/lazop/".$name.".php";
			$filename = app_path(). "/Libs/lazada/lazop/" . $name . ".php";
			
			if (is_file($filename)) {
				include $filename;
				return;
			}
		}
		
	}
	
	spl_autoload_register('Autoloader::autoload');
?>